import loadable from '@loadable/component'

const Home = loadable(()=>import('./home/Home'))
const Find = loadable(()=>import('./find/Find'))
const Shop = loadable(()=>import('./shop/Shop'))
const Good = loadable(()=>import('./good/GoodAdd'))

// const User = loadable(()=>import('./user/User'))
export default [
    {
        id:1,
        text:'英雄列表',
        children:[{
            id:1-1,
            path:'/home/detail',
            component:Home,
            text:'背景故事'
        },
        {
            id:1-2,
            path:'/shop/cart',
            component:Find,
            text:'英雄介绍'
        },
        {
            id:1-3,
            path:'/home/hero',
            component:Shop,
            text:'全部英雄'
        }
            
        ]
    },
    {
        id:2,
        text:'英雄管理',
        children:[
            {
                id:2-1,
                path:'/good/add',
                component:Good,
                text:"新增英雄"
            }
        ]
    },
    {
        id:3,
        text:'商品页面',
    },
    {
        id:4,
        text:'账户管理',
    },
]